//app.js
const wxapi = require('pages/util/wxapi.js')
App({
 
	onLaunch: function() {
  },

  //  获取openid
  getOpenId() {
    var that=this;
    wx.login({
      success: function (res) {
        console.log(res)
      }
    })
  },

	globalData: {
		userInfo: null,
    // api: 'http://yuguogou.com',
    // imgUrl: 'http://yuguogou.com/',
    api: 'https://d.dmooo.top',
    apiJd: 'https://api-gw.haojingke.com/index.php/v1/api',
    apiPdd: 'https://gw-api.pinduoduo.com/api/router',
    apiJy:'https://jiayou.dmooo.net/',
    imgUrl: 'https://d.dmooo.top/',
    apiJdRate:'https://tp.jdlgg.com',
    token:'',
    uid:'',
    group_id:'',
    auth_code:'',
    openid:'',
    platform:'Android',
    version:'1',
    orderdetail:[],//订单详情
    sharedgoodId:'',////分享的商品ID
    sku:[],
    jdList:[],
    balance_pdd:'0',
    curTab:0,//订单列表--订单位置
    cat_idYj:1,//留言 意见反馈
    cat_idJm:2,//留言 加盟
    nickname:'',
    weixinid:'',
    avatar:'',
    truename:'',
    version_code:'',
    uid:'',//当前用户ID
    sharedThree:4,//分享海报ID
    bankId:'',//默认银行卡账户ID
    balance:'',//用户余额
    phone:'',//当前账户手机号码
    openid:'',//openid
    payfrom:'balance',//支付方式
    login_type:'wx',
    pdd_client_id:'',
    pdd_client_secret:'',
    wxapi: wxapi,
    phone:'',
    alipay_account:''
	}
});
